<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2015/12/19
 * Time: 14:25
 */
class Activity_vote_model extends CI_Model
{
    private $_table = 'activity_vote';

    public function findById($voteId)
    {
        $this->db->select('vote_id,vote_name, describe, start_date, end_date');
        $this->db->from($this->_table);
        $this->db->where('vote_id', $voteId);
        $this->db->where('status', 1);
        $this->db->limit(1);
        return $this->db->get();
    }
}
